// simple_test.js - 简化版测试脚本
console.log("开始测试...");

// 测试引入模块
try {
    const { HNSWLib } = require("@langchain/community/vectorstores/hnswlib");
    console.log("✓ HNSWLib 模块引入成功");
} catch (error) {
    console.error("✗ HNSWLib 模块引入失败:", error.message);
}

try {
    const { DeepSeekEmbeddings } = require("@langchain/deepseek");
    console.log("✓ DeepSeekEmbeddings 模块引入成功");
} catch (error) {
    console.error("✗ DeepSeekEmbeddings 模块引入失败:", error.message);
}

try {
    const { RecursiveCharacterTextSplitter } = require("langchain/text_splitter");
    console.log("✓ RecursiveCharacterTextSplitter 模块引入成功");
} catch (error) {
    console.error("✗ RecursiveCharacterTextSplitter 模块引入失败:", error.message);
}

console.log("测试完成。");